package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.UserDTO;
import com.fuli.app.dto.query.UserQueryDTO;

import java.util.List;

public interface UserService {

    ActionResult<String> add(UserDTO dto);

    ActionResult<String> delete(String id);

    ActionResult<List<String>> beachDelete(List<String> ids);

    ActionResult<String> update(UserDTO dto);

    ActionResult<UserDTO> get(String id);

    ActionResult<Pagination<UserDTO>> pageQuery(UserQueryDTO dto);

    ActionResult<Boolean> existAccount(String account);

    ActionResult<String> resetPassword(String id, String password);

    ActionResult<String> updateLoginInfo(String userId, String ip);

    ActionResult<UserDTO> getByOpenId(String openId);
}
